This patch fixes "xm reboot" command.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 Aug 2005 22:18:27 +0000 (22:18 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 11 Aug 2005 22:18:27 +0000 (22:18 +0000)
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
tools/python/xen/xm/main.py

index cbdbb1c0e8bce1ee3ebbf580b64a6ab228bac61a..d1a7fd4f575df248f78666d3211c4bde776bed8f 100644 (file)
@@ -289,13 +289,12 @@ def xm_destroy(args):
     args.insert(0,"bogus")
     destroy.main(args)
             
-# TODO: make reboot do the right thing, right now
-# reboot and shutdown are exactly the same
 def xm_reboot(args):
     arg_check(args,1,"reboot")
     # ugly hack because the opt parser apparently wants
     # the subcommand name just to throw it away!
     args.insert(0,"bogus")
+    args.insert(2,"-R")
     from xen.xm import shutdown
     shutdown.main(args)